package org.azj.logHelper;

import java.io.IOException;

public class LOG {
	private static LogHelper LogHelper = null;

	public static void WriteLog(String message) {
		WriteLog(LOG_LEVEL.INFORMATION,LOG_COMPONENT.LOG_COMP_COMMON,message);
	}
	
	public static void WriteLog(LOG_LEVEL eLogLevel, LOG_COMPONENT component,
			String message) {
		try {
			if (LogHelper == null) {
				LogHelper = new LogHelper("log");
			}
			LogHelper.WriteLog(eLogLevel, component, message);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public static void Dispose() throws IOException {
		if (LogHelper == null) {
			return;
		}
		LogHelper.Dispose();
	}
}
